import { constantRoutes } from '@/router/index'

const state = {
  routes: constantRoutes
}
const getters = {}
const mutations = {
  setRoutes(state, newRoutes) {
    state.routes = [...constantRoutes, ...newRoutes]
  }
}
const actions = {}

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
}
